const Controller = require('egg').Controller;

class FilesController extends Controller {
    async uploadPackage() {
        const ctx = this.ctx;
        const result = await ctx.service.file.uploadPackage();
        if (result) {
            ctx.body = {
                code: 200,
                data: result,
                success: true,
                msg: `上传成功`
            }
        }
    }
}

module.exports = FilesController;